Elementor\Modules\Ai\Connect\Ai A

Total Complexity 52
Dependencies 4
Dependents 1
Total lines 626
Lines of code 463
Logical lines of code 127
Comment lines 78
Methods 30
Properties 0

Methods 30

Method Rating Maintainability Complexity Lines of code
generate_layout()
A
42 6 56
get_upload_request_body()
S
52 5 23
get_image_to_image_mask()
S
48 3 35
ai_request()
S
52 3 25
get_image_to_image_out_painting()
S
51 2 28
get_image_to_image()
S
54 2 22
get_image_to_image_replace_background()
S
56 2 19
get_image_to_image_upscale()
S
56 2 19
get_image_to_image_remove_background()
S
57 2 18
get_history_by_type()
S
57 2 17
get_file_payload()
S
59 2 13
store_temp_file()
S
64 2 10
get_cached_usage()
S
64 2 10
get_text_to_image()
S
60 1 14
get_custom_css()
S
60 1 14
get_custom_code()
S
61 1 13
get_edit_text()
S
61 1 13
get_layout_prompt_enhanced()
S
61 1 13
get_image_prompt_enhanced()
S
62 1 12
get_completion_text()
S
62 1 12
delete_history_item()
S
64 1 10
toggle_favorite_history_item()
S
64 1 10
get_title()
S
79 1 3
get_api_url()
S
80 1 3
set_used_gallery_image()
S
65 1 10
set_status_feedback()
S
65 1 10
set_get_started()
S
65 1 10
get_remote_config()
S
65 1 10
get_usage()
S
65 1 10
init()
S
98 1 1